home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / comm / misc / movelog.lha / movelog / movelog.txt < prev    next >
Encoding:
Text File  |  1998-03-29  |  5.5 KB  |  145 lines

  1. DISCLAIMER:
  2.  
  3.     This program is offered "as is".  There is no guarantee that this program 
  4.     will not mess up files on your hard drive.  I do not claim responsibility 
  5.     for anyone trying to use this program for any purpose other than the one 
  6.     it was intended or if something does happen when it is used properly.  The
  7.     only claim I make is that it works on my system.
  8.     
  9. PURPOSE:
  10.     
  11.     This program is intended to help those of us trying to run servers on our 
  12.     Amiga computers.  I ran into the problem of trying to keep my computer 
  13.     online when I wasn't physically in front of (it does get boring just 
  14.     sitting there sometimes... really).  So I decided to write a program
  15.     to take care of the mundane task for me.
  16.     
  17. IDEA:
  18.  
  19.     The idea of this program was to keep my computer online, along with the 
  20.     task of helping me figure out which port was causing crashes.  I called 
  21.     it "Movelog" because it was originally intended to move the amitcp.log 
  22.     file to a more permanent storage location, so that when my computer would
  23.     crash, I would have a log to look at and see which program was the faulty 
  24.     one.  
  25.     
  26.     Once I got the program to do that, I decided that it could examine each 
  27.     line in the file for the signal that the modem was offline and reset it.  
  28.     I will probably add a config file to allow users to determine what they 
  29.     want to watch for along with a command to be executed when the
  30.     line is found.
  31.     
  32. REQUIREMENTS:
  33.     
  34.     any AmiTCP version that uses the file "t:amitcp.log"
  35.     any Amiga computer that is running AmiTCP.
  36.     a knowledge of your commands that you use to bring your computer online 
  37.             and take it offline again.
  38.  
  39.     The programs used by Movelog internally are:
  40.         
  41.         askhost   (to keep the link active by requesting data across the
  42.                     link every 25 minutes)
  43.         copy      (to copy needed commands to T: so that it doesn't need
  44.                     to access the hard drive during run-time)
  45.         status    (to check for another copy of itself running)
  46.         say       (pretty much only if you have the "realms" MUD running
  47.                     on the default port of 4563, AND you have logging turned
  48.                     ON in your inet.access file)
  49.         delete    (to clean up any files it moved to T: during the run)
  50.     
  51. ARGUMENTS:
  52.  
  53.     This program is only executed from the command line at the moment.  The 
  54.     argument it is expecting is the path and logfile that you want it to 
  55.     monitor.
  56.     
  57.     My command line looks like this:
  58.     
  59.     
  60.         movelog t:amitcp.log
  61.     
  62.     
  63.     Theoretically, it can be used to monitor any file that you desire.
  64.     
  65. TECHNICAL:
  66.  
  67.     This program operates on a 30 second interval for checking the file.  It 
  68.     moves new information every 30 seconds.  It checks for an action like 
  69.     clicking on the pause button once per second.  I had to do this because 
  70.     I couldn't find a way to set up a condition for a time OR an IDCMP flag.
  71.     If anyone can tell me how to do this, I'd be greatful, and my program 
  72.     will be more fluid to use.
  73.     
  74.     The login program needs to be able to have some kind of output, and it 
  75.     has to be redirected into a file called "t:movelogtemp".  The file has 
  76.     to somewhere have the word "connect" (case insensitive) since that's 
  77.     what it looks for to determine that it is in fact back online. The program 
  78.     IPDial is one that can do this if you use the command as I have it set up:
  79.     
  80.     
  81.         ipdial login.ipdial echo > t:movelogtemp
  82.     
  83.     
  84.     That line will direct the output from the echo to the file that movelog 
  85.     needs.
  86.  
  87.     The .cfg files are loaded in the following order for a fresh, first-time
  88.     boot-up:
  89.  
  90.  
  91.         preboot.cfg
  92.         reboot.cfg
  93.         runtime.cfg
  94.         reruntime.cfg
  95.  
  96.  
  97.     since they are all run at the same time, there is no need to have duplicate
  98.     commands in them.  The following is the order of commands that happens
  99.     when either the modem falls offline, or you tell the program to reboot
  100.     the network:
  101.     
  102.  
  103.         preboot.cfg
  104.         reboot.cfg
  105.         reruntime.cfg
  106.  
  107.  
  108.     notice that the only one that's not used again is the runtime.cfg.  This is
  109.     because that is the only file that is supposed to have programs that will 
  110.     stay running even if the modem goes offline.
  111.  
  112.     You do not need to put "startnet" or "stopnet" in there anywhere because
  113.     the program takes care of these automatically.
  114.  
  115. FEE:
  116.  
  117.     There is no required fee.  I only ask that you email me to let me know
  118.     that people are using my program, it'll make me feel good (seriously),
  119.     and it doesn't take much time to write an email saying "cool program" (c:
  120.  
  121.     But.... if you WANT to send me some money or if you think my time
  122.     on this program is worth something, I will not decline the donation (c;
  123.     
  124.     
  125. CONTACT INFO:
  126.  
  127.     If anybody needs or wants to contact me in reference to this program feel 
  128.     free to do so, in fact, I would really like to have some feedback on this 
  129.     program since it is my first release into the public domain.
  130.     
  131.     email:      vancej@kiimbal.dyn.ml.org
  132.     
  133.     postal:     Jim Vance
  134.                 2504 River Hills ct  apt #901
  135.                 Arlington, Tx  76006
  136.                 
  137.     This email address should be good for quite a while since it's an address 
  138.     on my computer through my email server, it'll be good no matter what 
  139.     service provider I get, as long as Monolith (DynDNS) is operating.
  140.     
  141.     Thanks
  142.     
  143.       
  144. --------------------------
  145.